package com.geekhalo.admin.app.app;

import com.geekhalo.admin.app.app.query.PageByStatus;
import com.geekhalo.lego.core.query.QueryApplicationServiceDefinition;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import com.geekhalo.lego.core.singlequery.Page;
import java.util.List;
import com.geekhalo.admin.domain.app.WebApplicationQueryRepository;
import com.geekhalo.admin.domain.app.WebApplicationView;

@QueryApplicationServiceDefinition(
        repositoryClass = WebApplicationQueryRepository.class,
        masterDataClass = WebApplicationView.class
)
@Validated
public interface WebApplicationQueryApplication {

    Page<WebApplicationView> pageOf(@Valid PageByStatus query);
}
